package wifiunion.com.notice.widget.treedialog;


import com.google.gson.reflect.TypeToken;

import java.util.HashMap;
import java.util.List;

import wifiunion.com.notice.BaseCallBack;
import wifiunion.com.notice.Constants;
import wifiunion.com.notice.DataSyncContact;
import wifiunion.com.notice.HttpUtils;
import wifiunion.com.notice.widget.treedialog.entity.TreeEntity;

/**
 * Created by Administrator on 2017/5/25.
 */

public class TreefilterModel implements DataSyncContact.Model {
    @Override
    public void loadData(String url, HashMap<String, Object> params, BaseCallBack callBack) {

    }

    public void getTreeFilterRequest(HashMap<String, Object> param1s, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_DATASYNC_TREEFILTER, param1s, callBack,
                new TypeToken<List<TreeEntity>>() {
                }.getType());
    }

    public void getCurrentTreeRequest(HashMap<String, Object> param1s, BaseCallBack callBack) {
        HttpUtils.HttpGetRequest_Asyn(Constants.HTTP_URL_GET_DATASYNC_TREESOURCE, param1s, callBack,
                new TypeToken<List<TreeEntity>>() {
                }.getType());
    }
}
